<template>
  <div style="margin: 10px;">
    <el-form ref="form" label-position="top">
      <div>
        <el-form-item label="输入时间(s)">
          <el-input :disabled="$route.query.type == 2" v-model="value" placeholder="请输入时间" />
        </el-form-item>

      </div>
    </el-form>
    <div style="width: 100%; text-align: center;" v-if="$route.query.type != 2">
      <el-button @click="saveTimer" type="primary">保存</el-button>
    </div>
  </div>
</template>

<script>
import {
  queryParamForOwnParList,
} from "@/api/settingManagement/devicesSetting"
export default {
  data () {
    return {
      value: ''
    }
  },
  props: {
    capList: {
      type: String,
      default: ""
    },
  },
  mounted () {
    if (this.capList) {
      this.value = JSON.parse(this.capList).seqValue
    }
  },
  methods: {
    saveTimer () {
      this.$emit('addMessage', { seqValue: this.value })
    }
  }
}
</script>


<style></style>
